package com.verlet.springbootdemo.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 将请求头中 token 通过 CurrentUserMethodArgumentResolver 处理成 User 对象
 * @author verlet
 * @date 2021-02-26 21:54
 */
@Target({ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CurrentUser {

    String value() default "";
}
